package com.cloudkinto.service.finance.vo;

import com.cloudkinto.common.utils.StringsUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class RechargeRes {
    @ApiModelProperty(value = "充值单号")
    private Long id;


    @ApiModelProperty(value = "充值方式")
    private String payType;

    @ApiModelProperty(value = "充值账户")
    private String rechargeAccount;

    @ApiModelProperty("日币汇率")
    private Double jpyRate;

    /**
     * 充值金额
     */
    @ApiModelProperty(value = "充值金额(日元)")
    private Double amountJp;
    /**
     * 充值金额
     */
    @ApiModelProperty(value = "充值对应人民币")
    private Double amountRmb;

    /**
     * 充值前余额
     */
    @ApiModelProperty(value = "充值前余额")
    private Double beforeAmount;

    /**
     * 充值后余额
     */
    @ApiModelProperty(value = "充值后余额")
    private Double afterAmount;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String tips;

    /**
     * 审核状态  0 待审核  1充值成功 2充值取消
     */
    @ApiModelProperty(value = "审核状态")
    private String status;

    /**
     * 充值凭证
     */
    @ApiModelProperty(value = "充值凭证")
    private String certificateImagePath;

    /**
     * 公司标识
     */
    private Long companyId;

    @ApiModelProperty(value = "开票记录id")
    private Long invoiceRecordId;

    @ApiModelProperty(value = "0 不可开票  1 且 invoiceRecordId 为空 可开票 ")
    private int enableApply;

    @ApiModelProperty("币种")
    private Long currency;

    /**
     * 充值时间
     */
    @ApiModelProperty(value = "充值时间")
    private Date createTime;

    public String getPayType() {
        return StringsUtil.createI18Message(payType);
    }

    public String getRechargeAccount() {
        return StringsUtil.createI18Message(rechargeAccount);
    }

    public String getStatus() {
        return StringsUtil.createI18Message(status);
    }
}
